import { createRouter, createWebHistory } from 'vue-router'
import IndexView from '@/views/IndexView.vue'


import ActivityListView from '@/views/activity/ListView.vue'

import LoginView from "@/views/LoginView";

const routes = [{
    path:"/login",
    name:"loginView",
    component: LoginView
  },{
    path: '/',
    name: 'indexView',
    component: IndexView,
    children:[{
        path: '/activity',
        name: 'activityList',
        component: ActivityListView,
    }]
  }
]



const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})



export default router
